package com.coin900.coin.server;

import org.springframework.boot.autoconfigure.web.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by zhangyou on 2018/1/30.
 */
@Controller
public class MyErrorController implements ErrorController {

    private static final String ERROR_PATH = "/error";

    @RequestMapping(value=ERROR_PATH)
    public String handleError(){
        System.currentTimeMillis();
        return "project/404";
    }


    @Override
    public String getErrorPath() {
        return ERROR_PATH;
    }
}




